import Vue from 'vue'
import VueRouter from 'vue-router'

import Book from '../views/Book'
import Movie from '../views/Movie'
import Game from '../views/Game'
import Variety from '../views/Variety'
import Sports from '../views/Sports'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/book'
    },
    {
        path: '/book',
        name: 'Book',
        component: Book
    },
    {
        path: '/movie',
        name: 'Movie',
        component: Movie
    },
    {
        path: '/game',
        name: 'Game',
        component: Game
    },
    {
        path: '/variety',
        name: 'Variety',
        component: Variety
    },
    {
        path: '/sports',
        name: 'Sports',
        component: Sports
    },
]

const router = new VueRouter({
    routes
})

export default router
